package com.ruoyi.common.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * 雪花id
 *
 * @author lw
 */
public class IdWorkerUtil {

    private static final Snowflake SNOWFLAKE = IdUtil.getSnowflake(0L, 0L);

    public static long getId() {
        return SNOWFLAKE.nextId();
    }

}
